package com.neuedu.vehicleanalysisapi.controller;

import com.neuedu.vehicleanalysisapi.pojo.bStockRegion;
import com.neuedu.vehicleanalysisapi.service.bStockRegionService;
import com.neuedu.vehicleanalysisapi.util.ResponseBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class bStockRegionController {
    @Autowired
    private bStockRegionService bStockRegionService;

    @GetMapping("/queryAllStockRegion")
    public ResponseBody<List<bStockRegion>> queryAllStockRegion() {
        List<bStockRegion> bStockRegion = bStockRegionService.queryAllStockRegion();
        ResponseBody responseBody = new ResponseBody("200", "成功", bStockRegion);
        return responseBody;
    }
}
